package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 一体机升级记录表
 * @TableName sys_upgrade_dev_log
 */
@TableName(value ="sys_upgrade_dev_log")
@Data
public class SysUpgradeDevLog implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 数据ID用于同步
     */
    @TableField(value = "data_id")
    private Long dataId;

    /**
     * 升级版本
     */
    @TableField(value = "version")
    private String version;

    /**
     * 设备名
     */
    @TableField(value = "dev_name")
    private String devName;

    /**
     * 设备udid
     */
    @TableField(value = "dev_udid")
    private String devUdid;

    /**
     * 在线离线状态 0:离线 1:在线
     */
    @TableField(value = "dev_online_state")
    private Integer devOnlineState;

    /**
     * 关联系统升级表id
     */
    @TableField(value = "sys_update_id")
    private Long sysUpdateId;

    /**
     * 升级状态 1:正在升级 2：升级成功 3：升级失败
     */
    @TableField(value = "upgrade_status")
    private Integer upgradeStatus;

    /**
     * 升级描述
     */
    @TableField(value = "update_desc")
    private String updateDesc;

    /**
     * 升级时间
     */
    @TableField(value = "update_date")
    private LocalDateTime updateDate;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
